<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	String id = request.getParameter("id");
	if (id == null) {
		id = "";
	}
%>
<script type="text/javascript">
$(function(){

	
	<% if(id!=""){%>

	 $.post('${ctx}/sys/user/adupdate/pro/json?id=' +$(':input[name="lid"]').val(), {
			id : $(':input[name="lid"]').val(),
		}, function(result) {
			if (result.lid != undefined) {
				//alert(result.status+" 和"+result.remarks+"还有"+result.sort);
				$('form').form('load', {
				
					'lid' : result.lid,
					'phone' : result.phone,
					'sex':result.sex,
					'username':result.username,
					 'workno':result.workno,
					 'email':result.email,
					 'account':result.account,
					 'mobile':result.mobile,
					 'statuts':result.status,
					 'remarks':result.remarks,
					 'sort':result.sort
				});
			 //alert(result.lid);
				//$('#iconCls').attr('class', result.iconCls);//设置背景图标
			}
			$.messager.progress('close');
		}, 'json');
	 
<%}%>
}); 		
</script>
<div id="dil">
	<form id="user_updateForms" method="post" class="zzld_form" >
		<input type="hidden" name="lid" value="<%=id %>" /> <br />
		<table class="zzld_table" style="width: 100%">
			<tr>
				<th>登录名:</th>
				<td><input name="account" value=""
					class="easyui-validatebox" data-options="required:true"
					missingMessage="请编辑登录名!"  /></td>
				<th>姓名:</th>
				<td><input name="username" value=""
					class="easyui-validatebox" data-options="required:true"
					missingMessage="请编辑姓名!"/></td>
			</tr>
			<tr>
			<th>性别:</th>
				<td><select name="sex">
						<option value="1">男</option>
						<option value="0">女</option>
				</select></td>
				<th>工号:</th>
				<td ><input name="workno" value=""
					class="easyui-validatebox" data-options="required:true"
					missingMessage="请编辑工号!" /></td>
				
			</tr>
			<tr>
				<th>email:</th>
				<td><input name="email" value=""
					class="easyui-validatebox" data-options="required:true"
					missingMessage="请编email!"  /></td>
				<th>手机</td>
				<td><input name="phone" value=""
					class="easyui-validatebox" data-options="required:true"
					missingMessage="请编辑手机!" /></td>
			</tr>
			<tr>

				<th>电话:</th>
				<td><input name="mobile" value=""
					class="easyui-validatebox" data-options="required:true"
					missingMessage="请编辑电话!" /></td>
				<th>是否启用:</th>
				<td><select name="status">
						<option value="0">未启用</option>
						<option value="1">已启用</option>
				</select></td>
			</tr>
			<tr>
				<th>排序</th>
				<td><input name="sort"
					class="easyui-numberspinner"
					data-options="required:true,min:0,max:100000,editable:false"
					style="width: 155px;" value="100" /></td>
				<th>描述:</th>
				<td><textarea name="remarks"></textarea></td>
			</tr>
		</table>
	</form> 
</div>